﻿#include "CmdCreateSurfaceElectricFieldGraph.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"
#include <iostream>

namespace PostCommand
{
    CmdCreateSurfaceElectricFieldGraph::CmdCreateSurfaceElectricFieldGraph()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdCreateSurfaceElectricFieldGraph::~CmdCreateSurfaceElectricFieldGraph()
    {
    }

    bool CmdCreateSurfaceElectricFieldGraph::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_sendSurfaceElectricFieldGraphData(m_graphType, m_currentIndex, m_readerIndex, m_readerType, m_filePath, m_name, m_geometryFileName, m_isOpenNewWindow);
        return _success;
    }

    void CmdCreateSurfaceElectricFieldGraph::undo()
    {
    }

    void CmdCreateSurfaceElectricFieldGraph::redo()
    {
        // execute();
    }

} // namespace PostCommand
